package Util;

@SuppressWarnings("serial")
public class ExcecaoInstanciaNaoEncontrada extends Exception {
	private Long[] codLong;
	private String codString;
	public ExcecaoInstanciaNaoEncontrada (long codLong, String tipoInstancia)
	{
		super(tipoInstancia + " com codigo=\"" + codLong + " nao existe");
		this.codLong = new Long[1];
		this.codLong[0]= codLong;
		this.codString = null;
	}
	public ExcecaoInstanciaNaoEncontrada (String codString, String tipoInstancia)
	{
		super(tipoInstancia + " com codigo=\"" + codString + " nao existe");
		this.codLong= null;
		this.codString = codString;
	}
	public ExcecaoInstanciaNaoEncontrada (String codString,Long [] codLong, String tipoInstancia)
	{
		super(tipoInstancia + " com codigo=\"" + codString +" " +codLong+ " nao existe");
		this.codLong= codLong;
		this.codString = codString;
	}
	public ExcecaoInstanciaNaoEncontrada (Long [] codLong, String tipoInstancia)
	{
		super(tipoInstancia + " com codigo=\"" + codLong+ " nao existe");
		this.codLong= codLong;
		this.codString = null;
	}
	public Long[] getCodLong() {
		return codLong;
	}
	public void setCodLong(Long[] codLong) {
		this.codLong = codLong;
	}
	public String getCodString() {
		return codString;
	}
	public void setCodString(String codString) {
		this.codString = codString;
	}
}
